<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="java.io.*" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<% 
String ppath=request.getParameter("ppath"); 
         String file = ppath; 
         System.out.println("ppath"+file);
FileInputStream in = new FileInputStream(new File(file)); 
OutputStream o = response.getOutputStream(); 
  int l = 0; 
  byte[] buffer = new byte[4096]; 
while((l = in.read(buffer)) != -1){ 
o.write(buffer,0,l); 
} 
o.flush(); 
in.close(); 
o.close(); 
out.clear();
out = pageContext.pushBody();
%> 

</body>
</html>